-- GENERATED SPELL FOR [Bile Retcher] --


function spell0_16018(pUnit, Event) --@Bile Vomit,n/a--
pUnit:FullCastSpellOnTarget(27807,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16018', 15000, 1)
end

function spell1_16018(pUnit, Event) --@Bile Vomit,n/a--
pUnit:FullCastSpellOnTarget(54326,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16018', 15000, 1)
end

function Sorts_16018(pUnit, Event)
local choix_sorts_16018 = math.random(0, 1)
if choix_sorts_16018 == 0 then
pUnit:RegisterEvent('spell0_16018', 1, 1)
end
if choix_sorts_16018 == 1 then
pUnit:RegisterEvent('spell1_16018', 1, 1)
end
end

function mob16018_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16018', math.random(1500, 3000), 1)
end

function mob16018_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16018_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16018_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16018, 1, 'mob16018_Action')
RegisterUnitEvent(16018, 2, 'mob16018_Leave')
RegisterUnitEvent(16018, 3, 'mob16018_Kill')
RegisterUnitEvent(16018, 4, 'mob16018_Die')
